cancel

Cancels the media device selection.

The effect depends on what triggered the callback:

  • For getUserMedia() calls, the corresponding promise will be rejected with a NotFoundError.
  • For enumerateDevices() calls, all input devices will be excluded from the resulting device list.

Since

8.10.0